package stream.training;

public class Order {
    //商品对象
    private  Goods goods;
    //订单日期
    private  int year;
    //商品数量
    private  int total;

    public Order(Goods goods, int year, int total) {
        this.goods = goods;
        this.year = year;
        this.total = total;
    }

    public Goods getGoods() {
        return goods;
    }

    public int getYear() {
        return year;
    }

    public int getTotal() {
        return total;
    }

    @Override
    public String toString() {
        return "Order{" +
                "goods=" + goods +
                ", year=" + year +
                ", total=" + total +
                '}';
    }
}